package com.example.conf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 新闻表
 * </p>
 *
 * @author wpdcn
 * @since 2020-09-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_news")
@ApiModel(value="ShopNewsEntity对象", description="新闻表")
public class ShopNewsEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column(comment = "主键id")
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Column(comment = "标题")
    @ApiModelProperty(value = "标题")
    private String title;

    @Column(comment = "封面图片")
    @ApiModelProperty(value = "封面图片")
    private String headPicUrl;

    @Column(comment = "状态：1-启用；0-停用")
    @ApiModelProperty(value = "状态：1-启用；0-停用")
    private String status;

    @Column(comment = "内容")
    @ApiModelProperty(value = "内容")
    private String content;

    @Column(comment = "创建时间")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @Column(comment = "创建人")
    @ApiModelProperty(value = "创建人")
    private Long createBy;

    @Column(comment = "修改时间")
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @Column(comment = "修改人")
    @ApiModelProperty(value = "修改人")
    private Long updateBy;

    @Column(comment = "逻辑删除标志")
    @TableLogic
    private Integer delFlag;
}
